/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package adaptationLayer;

import contextManagement.ContextBroker;
import userInterface.GraphicalUserInterface;
//import userInterface.GraphicalUserInterface;
/**
 *
 * @author huangqing
 */
public class AdaptersFactory {

    public static void createAdapters(GraphicalUserInterface gui){

       Adapter tempadapter = new TemperatureAdapter(gui);
       Adapter uprefadapter = new UserPreferenceAdapter(gui);
       ContextBroker contextBroker = ContextBroker.getInstance();
       tempadapter.setContextBroker(contextBroker);
       uprefadapter.setContextBroker(contextBroker);
    }
}
